FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest


LABEL \
        org.opencontainers.image.title="keentuned" \
        org.opencontainers.image.version="latest" \
        maintainer="OpenAnolis KeenTune SIG"

RUN yum install git gcc go -y
RUN git clone https://gitee.com/anolis/keentuned.git;cd keentuned; sh keentuned_install.sh

RUN cd keentuned;go clean --modcache \
    && cd ..;rm -rf keentuned \
    && yum remove go -y

